package org.fightingliu.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author : LiuChao
 * @description : ElasticDemo 启动类
 * @date : 2025-04-13 16:17:35
 */
@Slf4j
@SpringBootApplication
public class ELasticSearchDemoApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(ELasticSearchDemoApplication.class, args);
        log.info("==========================================");
        log.info("{} started {}", context.getEnvironment().getProperty("spring.application.name"), context.isRunning() ? "Successfully" : "Failed");
        log.info("System Info : {}", context.getEnvironment().getProperty("os.name"));
        log.info("JDK Info : {}", context.getEnvironment().getProperty("java.vendor.version"));
        log.info("==========================================");
    }
}